package common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * description 树形通用实体类
 * @author yanxf@winning.com.cn
 * @date 2021/8/23 15:06
 */
@Data
public class TreeEntity implements Serializable {


    private String id;
    //name
    private String name;


    private String pId;

    private String pName;

    public String getpId() {
        return pId;
    }
    public String getPId() {
        return pId;
    }

    private String isLeaf;


    /**
     * 下级树节点
     */
    @TableField(exist = false)
    private List<TreeEntity> children;



}